﻿using MediatR;
using ProduceBasicData.Api.DTO;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Production
{
    /// <summary>
    /// 产线管理信息查询命令类
    /// </summary>
    public class GetProductionCommand:IRequest<ApiPaging<ProductionDto>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int Index { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        public int Size { get; set; } = 5;

        /// <summary>
        /// 产线编码
        /// </summary>
        public string? Productioncode { get; set; }

        /// <summary>
        /// 产线名称
        /// </summary>
        public string? Productionname { get; set; }

        /// <summary>
        /// 产线描述
        /// </summary>
        public string? Productiondesc { get; set; }

        /// <summary>
        /// 所属车间
        /// </summary>
        public int? Workshopid { get; set; }

        /// <summary>
        /// 创建开始时间
        /// </summary>
        public DateTime? Createkstime { get; set; }

        /// <summary>
        /// 创建结束时间
        /// </summary>
        public DateTime? Createjstime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }

        /// <summary>
        /// 更新开始时间
        /// </summary>
        public DateTime? UpdateksTime { get; set; }

        /// <summary>
        /// 更新结束时间
        /// </summary>
        public DateTime? UpdatejsTime { get; set; }
    }
}
